package com.shycloud.mido.member.api.feign;

import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.member.api.config.FeignConfig;
import com.shycloud.mido.member.api.entity.StockSaleOrderDetailVO;
import com.shycloud.mido.member.api.entity.StockSaleOrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Xiaoxing Yu
 * @date 2020/9/24
 **/
@FeignClient(value="shycloud-opter-biz", configuration = FeignConfig.class)
public interface RemoteOptService {

	/**
	 * 会员所属机构数量
	 * @return
	 */
	@GetMapping("/stock/getSaleOrder")
	Integer getSaleOrder();

	/**
	 * 销售订单创建
	 * @param saleOrderVO
	 * @return
	 */
	@PostMapping("/stock/addSaleOrder")
	R addSaleOrder(@RequestBody StockSaleOrderVO saleOrderVO);

	/**
	 * 销售订单详情创建
	 * @param detailVO
	 * @return
	 */
	@PostMapping("/stock/addSaleOrderDetail")
	R addSaleOrderDetail(@RequestBody StockSaleOrderDetailVO detailVO);

}
